import { $post, $get } from '../utils/request'

// 分页查询店铺交易记录
export const FIND_SHOP_BUSINESS_LOG_PAGE = (params, pageNo, pageSize) =>
  $post('/store-platform/shop/findShopLogPageApi', params, { pageNo, pageSize })

// 查询提现税费接口(转账到云账户)
export const FIND_TRANSFER_TO_CLOUD_ACCOUNT_TAX = params =>
  $post('/store-platform/withdrawals/findWithdrawTax', params)

// 账户充值
export const CHARGE_ACCOUNT = params =>
  $post('/store-platform/pay/accountRecharge', params)

// 查询充值记录详情
export const FIND_CHARGE_ACCOUNT_ORDER = rechargeId =>
  $get('/store-platform/recharge/findRechargeRecordInfo', { rechargeId })

// 云账户转账接口
export const TRANSFER_TO_CLOUD_ACCOUNT = params =>
  $post('/store-platform/withdrawals/transferToYun', params)

// 分页查询店铺养老金记录
export const FIND_SHOP_PENSION_LOG_PAGE = (params, pageNo, pageSize) =>
  $post('/store-platform/shop/findPensionLogPageApi', params, {
    pageNo,
    pageSize
  })

// 养老金充值
export const CHARGE_PENSION = params =>
  $post('/store-platform/pay/pensionRecharge', params)
